﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BibleLib
{
    [Serializable]
    public class Book
    {
        public int Id { get; set; }

        public string Abbrev { get; set; }

        public string Name { get; set; }

        public List<Chapter> Chapters { get; set; }

        public static Book Create(int id,
            string abbrev,
            string name,
            List<Chapter> chapters)
        {
            return new Book
            {
                Id = id,
                Abbrev = abbrev,
                Name = name,
                Chapters = chapters
            };
        }
    }
}
